/*
 * @Author: toString
 * @Date: 2025-01-13 13:15:42
 * @LastEditTime: 2025-01-13 18:40:55
 * @LastEditors: toString
 * @Description: 
 * @FilePath: \token-for-token-admin\src\require\api.js
 */
import request from './require.js'

// 登录接口 /api/admin/login
export const login = (params) => request.post("login", params);

// 获取配置列表 /admin/chainConfigs
export const chainConfigs = (params) => request.get("chainConfigs", {params});

// 获取tokens列表 /admin/chainTokens
export const chainTokens = (params) => request.get("chainTokens", {params});


// 用户配置列表 api/getUserConfigList
export const getUserConfigList = (params) => request.get("getUserConfigList", {params});

// 配置添加 /createUserConfig
export const creatUserConfig = (params) => request.post("creatUserConfig", params);

// 配置修改 /admin/userConfig/{id}
export const updateUserConfig = (id, params) => request.patch(`userConfig/${id}`, params);


// 配置删除 admin/userConfig/{id}
export const deleteUserConfig = (id) => request.delete(`userConfig/${id}`);

// 链信息列表 /admin/findChain
export const findChain = (params) => request.get("findChain", {params});

// 新增链配置 /admin/createChain
export const createChain = (params) => request.post("createChain", params);

// 修改链配置 /admin/updateChain
export const updateChain = (params) => request.post("updateChain", params);

// 删除链配置 /admin/deleteChain
export const deleteChain = (params) => request.post("deleteChain", params);


// 获取兑换列表 /api/v2/getList
export const getExchangeList = (params) => request.get("/getList", {params});



